<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>供应商平台</title>
</head>
<body class="tob-wrap">
	<div th:replace="common/top"></div>
	<article class="container container-b1-supplier clearfix">
		<div th:replace="common/left::side"></div>
		<section class="content">
			<h3 class="m-top-bar">
				<!--<img src="../images/temp/pic_30x30_01.jpg" alt=""/> <a href="#">HUAWEI
					Tech <icon class="icon-btn icon-btn-blue-close"></icon>
				</a>-->
			</h3>
			<div class="info clearfix">
				<div class="people-info">
					<img class="img-round" src="../images/temp/pic_300x280_00.jpg" alt=""
						width="50" height="50" />
					<p>
						<strong >龙飞龙默</strong> <span th:text="${currentUser.realName}"></span> 
						   <em th:text="${vendor.grade}+'级'" th:if="${vendor.grade!=E}"></em>
						   <em th:if="${vendor.grade==E}" class="black">E级</em>
					</p>
				</div>
				<table class="num-info" cellpadding="0" cellspacing="0">
					<tr>
						<td><a th:href="@{/supplier/saleList.htm}"><strong th:text="${xiaoshoujihui}"></strong><span>销售机会</span></a></td>
						<td><a th:href="@{/supplier/orderList.htm}"><strong th:text="${xiaoshoudingdan}"></strong><span>销售订单</span></a></td>
						<td><a href="../message/index.htm"><strong class="orange" th:text="${message}"></strong><span>我的消息</span></a></td>
					</tr>
				</table>
				<div class="date-info">
					<span class="span-wrap">会员至：<span th:text="${huiyuanshijian}"></span></span> <a
						class="btn btn-orange" href="../pay/index.htm">立即续费</a>
				</div>
			</div>
			<div class="m-table">
				<div class="m-table-top">
					<h4>
						<strong>新机会</strong> <em class="orange">(未开标)</em> <span>|</span>
						<a th:href="@{/supplier/saleList.htm}">更多...</a>
					</h4>
				</div>
				<div class="m-table-cont">
					<table width="100%" summay="" cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th>序号</th>
								<th>发标方</th>
								<th>描述</th>
								<th>性质</th>
								<th>招标截止时间</th>
								<th>讲标时间</th>
								<th>联系方式</th>
								<th>附件</th>
							</tr>
						</thead>
						<tbody th:if="${pipelineItem ne null}">
							<tr>
								<td>001</td>
								<td class="w100">
									<p th:if="${pipelineItem.tPipelineHeader.tCompany.companyName ne null}" th:text="${pipelineItem.tPipelineHeader.tCompany.companyName}"></p>
								</td>
								<td class="w150">
									<p th:text="${pipelineItem.tPipelineHeader.description}"></p>
								</td>
								<td>
								    <span class="status status-success" th:if="${pipelineItem.bidType eq 1}">招标</span>
									<span class="status status-success" th:if="${pipelineItem.bidType eq 2}">授予</span>
									<span class="status status-success" th:if="${pipelineItem.bidType eq 3}">议标</span>
									<span class="status status-success" th:if="${pipelineItem.bidType eq 4}">询价</span>
								</td>
								
								<td><span th:if="${pipelineItem.closeTime ne null}" th:text="${#dates.format(pipelineItem.openTime, 'yyyy-MM-dd')}">2015-05-23<br />14:30
								</span></td>
								<td><span th:if="${pipelineItem.presentationTime ne null}" th:text="${#dates.format(pipelineItem.presentationTime, 'yyyy-MM-dd')}">2015-05-23<br />14:30
								</span></td>
								<td>
									<p>
										<span th:text="${pipelineItem.contactUser}">欧文贝克汉姆</span><br />
										<span th:text="${pipelineItem.contactPhone}">+86 13800138000</span><br />
										<span th:text="${pipelineItem.contactEmail}">abcdefg@163.com</span>
									</p>
								</td>
								<td><a href="#"><i class="icon icon-attachment"></i>
										附件1</a> <br /> <a href="#"><i class="icon icon-attachment"></i>
										附件1</a> <br /> <a href="#"><i class="icon icon-attachment"></i>
										附件1</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="m-table">
				<div class="m-table-top">
					<h4>
						<strong>新机会</strong> <em class="green">(已开标)(根据招标截止时间跟当前时间比较判断)</em>
						<span>|</span> <a th:href="@{/supplier/saleList.htm}">更多...</a>
					</h4>
				</div>
				<div class="m-table-cont">
					<table width="100%" summay="" cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th>序号</th>
								<th>发标方</th>
								<th>描述</th>
								<th>性质</th>
								<th>讲标时间</th>
								<th>联系方式</th>
								<th>公司中标方</th>
								<th>最终中标方</th>
							</tr>
						</thead>
						<tbody th:if="${pipelineItemsAfter ne null}">
							<tr>
								<td>001</td>
								<td class="w100">
									<p th:text="${pipelineItemsAfter.tPipelineHeader.tCompany.companyName}"></p>
								</td>
								<td class="w150">
									<p th:text="${pipelineItemsAfter.tPipelineHeader.description}"></p>
								</td>
								<td>
								    <span class="status status-success" th:if="${pipelineItemsAfter.bidType eq 1}">招标</span>
									<span class="status status-success" th:if="${pipelineItemsAfter.bidType eq 2}">授予</span>
									<span class="status status-success" th:if="${pipelineItemsAfter.bidType eq 3}">议标</span>
									<span class="status status-success" th:if="${pipelineItemsAfter.bidType eq 4}">询价</span>
								</td>
									
									
								<td><span th:if="${pipelineItemsAfter.presentationTime ne null}" th:text="${#dates.format(pipelineItemsAfter.presentationTime, 'yyyy-MM-dd')}">2015-05-23<br />14:30
								</span></td>
								<td>
									<p>
										<span th:text="${pipelineItemsAfter.contactUser}">欧文贝克汉姆</span><br />
										<span th:text="${pipelineItemsAfter.contactPhone}">+86 13800138000</span><br />
										<span th:text="${pipelineItemsAfter.contactEmail}">abcdefg@163.com</span>
									</p>
								</td>
								<td class="w100">
									<p th:text="${pipelineItemsAfter.updatedBy  ne null}"></p>
								</td>
								<td class="w100">
									<p th:text="${pipelineItemsAfter.updatedBy  ne null}"></p>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="m-table">
				<div class="m-table-top">
					<h4>
						<strong>订单履行</strong> <em class="orange"></em> <span>|</span> <a
							th:href="@{/supplier/orderList.htm}">更多...</a>
					</h4>
				</div>
				<div class="m-table-cont">
					<table width="100%" summay="" cellpadding="0" cellspacing="0">
						<thead>
							<tr>
								<th>序号</th>
								<th>订单号</th>
								<th>合同方</th>
								<th>描述</th>
								<th>起止时间</th>
								<th>币种</th>
								<th>金额</th>
								<th>里程碑概览</th>
							</tr>
						</thead>
						<tbody th:if="${tSalesOrder ne null}">
							<tr>
								<td>001</td>
								<td th:text="${tSalesOrder.salesOrderNo}"></td>
								<td class="w100">
									<p th:text="${tSalesOrder.tCompany.companyName}"></p>
								</td>
								<td class="w150">
									<p th:text="${tSalesOrder.salesOrderDesc}"></p>
								</td>
								<td>
									<span th:if="${tSalesOrder.startTime ne null}" th:text="${#dates.format(tSalesOrder.startTime, 'yyyy-MM-dd')}"></span>
									<br />至
									<br />
									<span th:if="${tSalesOrder.startTime ne null}" th:text="${#dates.format(tSalesOrder.expiredTime, 'yyyy-MM-dd')}"></span>
								</td>
								<td>
								<span th:if="${tSalesOrder.currency==0}" >CNY<br/>人民币</span>
								<span th:if="${tSalesOrder.currency==1}" >USD<br/>美元</span>
								
								</td>
								<td><strong class="orange" th:text="${tSalesOrder.price}"></strong></td>
								<td><a href="#">里程碑图标，不要链接</a></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>

			
		</section>
	</article>
</body>
<script data-main="../js/page/b1_supplier" src="../lib/requirejs/require.js"></script>
</html>